package com.atmk.atmk.designMode.结构型.适配器模式.对象适配器.客户端;

import com.atmk.atmk.designMode.结构型.适配器模式.对象适配器.原始类.USASocket;
import com.atmk.atmk.designMode.结构型.适配器模式.对象适配器.目标接口.EuropeanSocket;
import com.atmk.atmk.designMode.结构型.适配器模式.对象适配器.适配器类.USASocketAdapter;

public class Client1 {
    public static void main(String[] args) {
        USASocket usaSocket = new USASocket();
        EuropeanSocket adapter = new USASocketAdapter(usaSocket);
        adapter.powerWith220V();
    }
}
